<template>
  <div>
    <div class="demo">
      <h1>学校：{{name | mySlice}}</h1>
      <h1>地址：{{address }}</h1>

      <button @click="hello">点我测试方法</button>
    </div>
  </div>
</template>

<script>

export default {
  name: "School",
  data() {
    return {
      name: "北京大学 axasxas",
      address: "北京",
    }
  },

}
</script>

<style scoped>
  .demo {
    background: orange;
  }
</style>